const userMock = [
  // 用户登录
  {
    url: '/api/user/login',
    method: 'post',
    response: (res: any) => {
      return {
        code: 0,
        message: 'success',
        data: {
          token: 'TOKEN'
        }
      }
    }
  },
  // 获取用户信息
  {
    url: '/api/user/info',
    method: 'get',
    response: (res: any) => {
      return {
        code: 0,
        message: 'success',
        data: {
          id: '432532523',
          username: 'ikun',
          description: '前端开发'
        }
      }
    }
  },
  // 一个失败的请求
  {
    url: '/api/error',
    method: 'get',
    response: (res: any) => {
      return {
        code: -1,
        message: '密码错误',
        data: null
      }
    }
  }
]

export default userMock
